//
//  Customer.m
//  OsteoGest
//
//  Created by Pierre de Filippis on 5/15/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "Customer.h"

@implementation Customer

@synthesize properties;
@synthesize appointments;
@synthesize bills;
@synthesize address;

- (id) init {
	if ( self = [super init] )
	{
		NSArray *keys = [NSArray arrayWithObjects: @"first", @"last", @"birth date", nil];
		NSArray *values = [NSArray arrayWithObjects: @"First", @"Last", [NSDate date], nil];
		properties = [[NSMutableDictionary alloc] initWithObjects: values forKeys: keys];

		appointments = [[NSMutableArray alloc] init];
		bills = [[NSMutableArray alloc] init];
		
		NSArray *addressKeys = [NSArray arrayWithObjects: @"street", @"zip", @"state", @"city", @"country", nil];
		NSArray *addressValues = [NSArray arrayWithObjects: @"street", @"zip", @"state", @"city", @"country", nil];
		address = [[NSDictionary alloc] initWithObjects: addressValues forKeys: addressKeys];
	}
	return self;
}

- (void) dealloc
{
	[properties release];
	[appointments release];
	[bills release];
	[address release];
	
	[super dealloc];
}

@end
